package testing;

import profiler.FibTester;

public class Profiled implements FibTester{

    {
        System.out.println("loading");
    }
    
    public void foo() {
        //comeca
        try {
            foo$impl();
        } finally {
            //para
        }
    }

    
    public void foo$impl() {
        bar();
    }

    public Object bar() {
        System.out.println("bar called");
        return null;
    }

    public int fib(int i) {
        if (i < 2) {
            return 1;
        }
        return fib(i - 2) + fib(i - 1);
    }

}
